<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <div v-show="msg">
       显示还是隐藏
    </div>
    <div v-if="msg">
        显示还是隐藏
    </div>
    <div v-else-if="msg">
        显示还是隐藏
    </div>
    <div v-else="msg">
        隐藏
    </div>




</div>

</body>
<script src="../node_modules/vue/dist/vue.js"></script>
<script>
   let vm =  new Vue({
        el: '#app',
        data:{
           msg:true

        }
    })


</script>
</html>